package com.blockchain.securewallet.manager;

import com.blockchain.securewallet.R;
import com.blockchain.securewallet.interfaces.WalletFields;
import com.blockchain.securewallet.utils.StringUtil;


/**
 * Created by Lopez on 2018/6/21.
 */
public class FAQManager {

    /**
     * 根据传入的tyoe返回相应的FAQ标题
     * 
     * @param type
     * @return
     */
    public static String getFAQTitle(@WalletFields.FAQ int type) {
        switch (type) {
            case WalletFields.FAQ.WALLET_CREATE:
                return StringUtil.getResourceString(R.string.wallet_create);
            case WalletFields.FAQ.WALLET_RESTORE:
                return StringUtil.getResourceString(R.string.wallet_restore);
            case WalletFields.FAQ.WALLET_SWITCH:
                return StringUtil.getResourceString(R.string.tips_help_account_switch);
            case WalletFields.FAQ.BALANCE_RECEIVE:
                return StringUtil.getResourceString(R.string.tips_help_balance_receive);
            case WalletFields.FAQ.BALANCE_SEND:
                return StringUtil.getResourceString(R.string.tips_help_balance_send);
            case WalletFields.FAQ.BALANCE_UPDATE:
                return StringUtil.getResourceString(R.string.tips_help_balance_update);
            case WalletFields.FAQ.ADDRESS_ALL:
                return StringUtil.getResourceString(R.string.tips_help_address_all);
            case WalletFields.FAQ.FEE_SET:
                return StringUtil.getResourceString(R.string.tips_set_fee);
            case WalletFields.FAQ.PASSWORD_SEED:
                return StringUtil.getResourceString(R.string.tips_help_password_seed);
            case WalletFields.FAQ.PASSWORD_PAY:
                return StringUtil.getResourceString(R.string.tips_help_password_pay);
            case WalletFields.FAQ.PASSWORD_GESTURE:
                return StringUtil.getResourceString(R.string.tips_help_password_gesture);
            default:
                return StringUtil.getResourceString(R.string.tips_help_faq);
        }
    }

    /**
     * 根据传入的tyoe返回相应的FAQ详情
     * PS：注意这里返回的content到时需要替换
     * 
     * @param type
     * @return
     */
    public static String getFAQDetails(@WalletFields.FAQ int type){
        switch (type) {
            case WalletFields.FAQ.WALLET_CREATE:
                return StringUtil.getResourceString(R.string.faq_content_wallet_create);
            case WalletFields.FAQ.WALLET_RESTORE:
                return StringUtil.getResourceString(R.string.faq_content_wallet_restore);
            case WalletFields.FAQ.WALLET_SWITCH:
                return StringUtil.getResourceString(R.string.faq_content_wallet_switch);
            case WalletFields.FAQ.BALANCE_RECEIVE:
                return StringUtil.getResourceString(R.string.faq_content_balance_receive);
            case WalletFields.FAQ.BALANCE_SEND:
                return StringUtil.getResourceString(R.string.faq_content_balance_send);
            case WalletFields.FAQ.BALANCE_UPDATE:
                return StringUtil.getResourceString(R.string.faq_content_balance_update);
            case WalletFields.FAQ.ADDRESS_ALL:
                return StringUtil.getResourceString(R.string.faq_content_address_all);
            case WalletFields.FAQ.FEE_SET:
                return StringUtil.getResourceString(R.string.faq_content_set_fee);
            case WalletFields.FAQ.PASSWORD_SEED:
                return StringUtil.getResourceString(R.string.faq_content_password_seed);
            case WalletFields.FAQ.PASSWORD_PAY:
                return StringUtil.getResourceString(R.string.faq_content_password_pay);
            case WalletFields.FAQ.PASSWORD_GESTURE:
                return StringUtil.getResourceString(R.string.faq_content_password_gesture);
            default:
                return StringUtil.getResourceString(R.string.faq_content_default);
        }
    }

}
